<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@ page import="iwpl.project.dao.VehiclesDAO" %>
<%@ page import="iwpl.project.entities.Vehicles" %>
<%@ page import="iwpl.project.entitymanagerhelper.*" %>
<%@ page import="iwpl.project.servlet.*" %>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="js/jquery-Source.js"></script>
		<script type="text/javascript" src="js/jquery-Validation.js"></script>
		<!--<script src="http://code.jquery.com/jquery-latest.js"></script>
		<script type="text/javascript"
			src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>-->

		<title>Offices</title>
		<link href="css/CommonCSS.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
	$(document).ready(function() {
		$("#Vehicle").validate();
	});
</script>
	</head>

	<body>
		<form class="cmxform" id="Vehicle" method="get"
			action="./servlet/Control_Vehicle">
			<fieldset>
				<legend>
					Hello
				</legend>
				<p>
					<label for="PersonalID">
						Personal ID:
					</label>
					<select name="CboPersonal" id="PersonalID">
					<%
						VehiclesDAO VihicDAO = new VehiclesDAO();
						List<Vehicles> list = VihicDAO.findAll();
						
						for(Iterator<Vehicles> it = list.iterator(); it.hasNext();)
						{
							Vehicles Vehic = (Vehicles) it.next();
					 %>
					<!-- <input id="PersonalID" name="TxtPersonalID" class="required" /> -->
						<option value="<%=Vehic.getCustomers().getId()%>"><%=Vehic.getCustomers().getFullName() %></option>
					<%}%>
					</select>
				</p>
				<p>
					<label for="RegistryDate">
						Registry Date:
					</label>
					<input id="RegistryDate" name="TxtRegistryDate" class="required" />
				</p>
				<p>
					<label for="CancelDate">
						Cancel Date:
					</label>
					<input id="CancelDate" name="TxtCancelDate" class="required"
						minlength="5" maxlength="30" />
				</p>
				<p>
					<label for="ParkingPlace">
						Parking Place:
					</label>
					<input id="ParkingPlace" name="TxtParkingPlace" class="required"/>
				</p>
				<p>
					<label for="Type">
						Type:
					</label>
					<input id="Type" name="TxtType" class="required" />
				</p>
				<p>
					<input class="submit" type="submit" value="Submit" name="BtnSave"/>
				</p>
			</fieldset>
		</form>
	</body>
</html>